package org.sheep.menu;

import org.sheep.R;

import android.app.Activity;
import android.content.Intent;
import android.graphics.BitmapFactory.Options;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import org.sheep.*;

public class Menu extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button newGame = (Button)findViewById(R.id.newgame);
        newGame.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        	  Log.i("Menu", "Befor the start of the intent");
        		Intent newGameIntent = new Intent(Menu.this,Game.class);
        		startActivity(newGameIntent);
            Log.i("Menu", "'After the start of the intent");
        	}
        });
        
        Button helpButton = (Button)findViewById(R.id.help);
        helpButton.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        		Intent helpIntent = new Intent(Menu.this,Help.class);
        		startActivity(helpIntent);
        	}
        });
        
        Button optionsButton = (Button)findViewById(R.id.options);
        optionsButton.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        		Intent optionsIntent = new Intent(Menu.this,Options.class);
        		startActivity(optionsIntent);
        	}
        });
        
        Button creditsButton = (Button)findViewById(R.id.credits);
        creditsButton.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        		Intent creditsIntent= new Intent(Menu.this,Credits.class);
        		startActivity(creditsIntent);
        	}
        });
    }
}